<script setup lang="ts">
import {inject} from 'vue';
const message=inject('message','这时默认信息~~');
const count = inject('count');
</script>

<template>
  <div class="border rounded-3 shadow m-3 p-3">
    <p>count:{{ count}}</p>
    <p>message:{{message}}</p>
  </div>
</template>

<style scoped>

</style>